import request from '@/utils/request.js'; // 封装的request.js文件的位置

// 获取单位列表
export const getUnitList = ()=>{
	return request({
		url:`/business/deliveryDocument/getUnitList`,
		method:"GET"
	})
}
// 获取部门列表{unitId}
export const getDeptListByUnitId = (data)=>{
	return request({
		url:`/business/deliveryDocument/getDeptListByUnitId`,
		method:"GET",
		data
	})
}
// 查询单位下的用户{unitId}
export const getUserListByUnitId = (data)=>{
	return request({
		url:`/business/deliveryDocument/getUserListByUnitId`,
		method:"GET",
		data
	})
}
// 检察院保存文书
export const saveDocument = (data)=>{
	return request({
		url:`/business/deliveryDocument/saveDocument`,
		method:"POST",
		data
	})
}
